import Home from '../pages/Home'
import Detail from '../pages/Detail'
import BillList from '../pages/Home/BillList'
import BillAdd from '../pages/Home/BillAdd'

// 路由表
const routes = [{
  path: '/home',
  name: '首页',
  component: Home,
  children: [{
    path: '/home/billlist',
    name: '账单列表',
    component: BillList,
  }, {
    path: '/home/billadd',
    name: '账单添加',
    component: BillAdd,
  }]
}, {
  path: '/detail/:id',
  name: '详情',
  component: Detail
}, {
  from: '/',
  to: '/home/billadd'
}]


export default routes